package constants.programs;

import client.PurePlayer;
import tools.Timer;
import java.lang.ref.WeakReference;

public class DisTest {
    private WeakReference<PurePlayer> tests;
    public DisTest(PurePlayer chr) {
        tests = new WeakReference<PurePlayer>(chr);
    }
    
    public void disconnectTest() {
        Timer.PingTimer.getInstance().register(new Runnable() {
            @Override
            public void run() {
                PurePlayer test = tests.get();
                if (test != null) {
                    System.out.println("maplePlayer not destroyed..." + test);
                } else {
                    System.out.println("maplePlayer destroyed shockingly nice..!!");
                }
            }
        }, 5000L);
    }
}
